package com.pxst.merchant.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * @Author: @Ryan
 * @Description:
 * @CreateTime: 2023-09-14 14:21
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MerchantAccountListReq {

    @NotNull
    @ApiModelProperty("币种")
    private String currency;

    @ApiModelProperty("商户id列表")
    private List<Long> merchantIdList;


    @ApiModelProperty("商户状态列表")
    private List<Integer> statusList;

    @ApiModelProperty("卡号")
    private String cardNumber;

    @ApiModelProperty("开始日期")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date startDate;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty("结束日期")
    private Date endDate;


    @ApiModelProperty(value = "页面大小",required = true)
    @NotNull(message = "页面大小不能为空")
    private Integer rp;


    @ApiModelProperty(value = "当前页数",required = true)
    @NotNull(message = "页码不能为空")
    private Integer page;
}
